// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from "vue";
import App from "./App";
import router from "./router";
import store from "./store";
import "@/assets/style/base.scss";
import VueClipboard from "vue-clipboard2";
import "@/utils/filter";
import {
  Icon,
  Table,
  TableColumn,
  Card,
  Form,
  FormItem,
  Input,
  Button,
  Dialog,
  Pagination,
  Switch,
  Row,
  Col,
  Tree,
  Loading,
  MessageBox,
  Select,
  Option,
  Menu,
  Submenu,
  MenuItem,
  DatePicker,
  Checkbox,
  CheckboxGroup,
  Dropdown,
  DropdownMenu,
  DropdownItem,
  Avatar,
  Message,
  Radio,
  RadioGroup,
  RadioButton,
  Upload,
  TimePicker,
  ColorPicker,
  Tabs,
  TabPane,
  Progress,
  Calendar,
  Steps,
  Step,
  Link,
  tooltip
} from "element-ui";
Vue.use(Link);
Vue.use(Icon);
Vue.use(Table);
Vue.use(TableColumn);
Vue.use(Card);
Vue.use(Form); // 登录页用到
Vue.use(FormItem); // 登录页用到
Vue.use(Input); // 登录页用到
Vue.use(Button); // 登录页用到
Vue.use(Dialog);
Vue.use(Pagination);
Vue.use(Switch);
Vue.use(Row);
Vue.use(Col);
Vue.use(Tree);
Vue.use(Loading.directive);
Vue.use(Select);
Vue.use(Option);
Vue.use(Menu);
Vue.use(Submenu);
Vue.use(MenuItem);
Vue.use(DatePicker);
Vue.use(Checkbox);
Vue.use(CheckboxGroup);
Vue.use(Dropdown);
Vue.use(DropdownMenu);
Vue.use(DropdownItem);
Vue.use(Avatar);
Vue.use(Radio);
Vue.use(RadioGroup);
Vue.use(RadioButton);
Vue.use(Upload);
Vue.use(TimePicker);
Vue.use(ColorPicker);
Vue.use(Tabs);
Vue.use(TabPane);
Vue.use(Progress);
Vue.use(Calendar);
Vue.use(Steps);
Vue.use(Step);
Vue.use(tooltip);
Vue.use(VueClipboard);
Vue.prototype.$confirm = MessageBox.confirm;
Vue.prototype.$message = Message;
import utils from "@/utils";
Vue.prototype.$utils = utils;
// echarts
import echartsFn from "@/utils/echartpublic";
Vue.prototype.$echartsFn = echartsFn;
import pagination from "@/components/pagination";
Vue.component("link-pagination", pagination);
Vue.config.productionTip = false;
/* eslint-disable no-new */
new Vue({
  el: "#app",
  router,
  store,
  components: { App },
  template: "<App/>"
});
